package com.zhanghe.mall.pojo;

import com.zhanghe.mall.pojo.common.BasePojo;

import javax.persistence.*;

/**
 * Commodity
 *   商品
 * @author Clevo
 * @date 2018/7/18 22:47
 */
@Entity
@Table(name = "commodity")
public class Commodity extends BasePojo {

    /**
     * 商品业务键
     */
    public String commodityId;
    /**
     * 商品名
     */
    public String commodityName;
    /**
     * 商品状态
     */
    public Integer status;
    /**
     * 商品信息
     */
    public String info;
    /**
     * 商品简述
     */
    public String sketch;
    /**
     * 商品品牌
     */
    @ManyToOne
    @JoinColumn(name = "brand_id")
    public CommodityBrand commodityBrand;

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getSketch() {
        return sketch;
    }

    public void setSketch(String sketch) {
        this.sketch = sketch;
    }

    public CommodityBrand getCommodityBrand() {
        return commodityBrand;
    }

    public void setCommodityBrand(CommodityBrand commodityBrand) {
        this.commodityBrand = commodityBrand;
    }
}
